<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<title><{$title}></title>
<link href="__PcCss__/bootstrap.min.css" rel="stylesheet">
<link href="__PcCss__/mystyle.css" rel="stylesheet">
<link href="__PcCss__/reset.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="http://cdn.bootcss.com/summernote/0.5.1/summernote.css" />
<script type="text/javascript" src="__PcJs__/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="__PcJs__/bootstrap.min.js"></script>
<script src="http://cdn.bootcss.com/summernote/0.5.1/summernote.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
  <script src="http://apps.bdimg.com/libs/html5shiv/3.7/html5shiv.min.js"></script>
  <script src="http://apps.bdimg.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script>
$(document).ready(function(){
	$('.po-text>div').hover(function(){
		$(this).children('div.btn-block').slideDown(200);
	},function(){
		$(this).children('div.btn-block').slideUp(200);
	})
		       $("#login").mouseenter(function(){
				   $(this).children("div").css("display","block");
			   })
			   $("#login").mouseleave(function(){
				   $(this).children("div").css("display","none");
			   })
});
</script>
</head>
<body>
<style type="text/css">
    .header .menu li {
    float: left;
    font-size: 16px;
    line-height: 77px;
    color:#fff;
    }
</style>
<div style="background:url(__PcImages__/article.png) no-repeat left bottom #f4f4f4; position:fixed; width:100%; height:100%; top:0; left:0px; background-size:100%;"></div>
<div style="position:relative; z-index:10;">
    <div class="myInfoBox">
       <p>个人信息</p>
       <table width="100%" border="0">
      <tr>
        <td width="100px">学校</td>
        <td><input type="text" class="infoInput"></td>
      </tr>
      <tr>
        <td>院系</td>
        <td><input type="text" class="infoInput"></td>
      </tr>
      <tr>
        <td>专业</td>
        <td><input type="text" class="infoInput"></td>
      </tr>
      <tr>
        <td>姓名</td>
        <td><input type="text" class="infoInput"></td>
      </tr>
      <tr>
        <td>昵称</td>
        <td><input type="text" class="infoInput"></td>
      </tr><tr>
        <td>性别</td>
        <td><input type="radio" class="" name="sex"><span class="p10">男</span><input type="radio" class="" name="sex"><span class="p10">女</span></td>
      </tr>
      <tr>
        <td>出生日期</td>
        <td><input type="text" class="infoInput"></td>
      </tr>
      <tr>
        <td>手机号</td>
        <td><input type="text" class="infoInput"></td>
      </tr>
      <tr>
        <td>学号</td>
        <td><input type="text" class="infoInput"></td>
      </tr>
      <tr>
        <td>绑定QQ号</td>
        <td><input type="text" class="infoInput"></td>
      </tr>
      <tr>
        <td>绑定微信号</td>
        <td><input type="text" class="infoInput"></td>
      </tr>
      <tr>
        <td colspan="2" class="color-red">*以上信息必须认真填完整</td>
      </tr>
      <tr>
        <td align="center" colspan="2" class="color-red"><input type="button" class="btn anterbtn" value="确定提交"></td>
      </tr>
    </table>
    
    </div>
    
            
		<div class="header" style="position:absolute; top:0px; left:0px; z-index:1000; width:100%; background:none; border-bottom:none;">
			<div class="w w1200">
				<div class="logo">
					<a href="/">
						<img src="__PcImages__/logoz.png" />
					</a>
				</div>
				<div class="menu">
					<ul>
						<li>
							<a href="/">首页</a>
						</li>
                        <li>|</li>
						<li>
							<a href="<{:U('User/index')}>">个人主页</a>
						</li>
                        <li>|</li>
						<li style="position:relative;" id="select_course">
							<a href="javascript:;" >选课中心</a>
                                <div class="select_course">
                                    <volist name="class_list" id="vo">
                                        <a href="<{:U('Index/select_course',array('id'=>$vo['id']))}>"><{$vo['name']}></a>
                                    </volist>
                                </div>
						</li>
                        <style>
                            .select_course a{    
                            background: rgba(255, 255, 255, 0.5) none repeat scroll 0 0;
                            border-radius: 5px;
                            color: #f11222;
                            display: block;
                            font-size: 16px;
                            height: 40px;
                            line-height: 40px;
                            margin-top: 1px;
                            padding: 1px 10px;
                            text-align: center;
                        }
                        .select_course{
                            display:none;
                            margin-top:87px; 
                            position:absolute;
                            top:-20px;
                            overflow:hidden;
                            z-index:1000;
                        }
                        </style>
                        <script>
                            $(function(){
                                $("#select_course").mouseenter(function(){
                                   $('.select_course').show();
                               })
                               $("#select_course").mouseleave(function(){
                                   $('.select_course').hide();
                               })
                            })
                        </script>
                        <li>|</li>
						<!-- <li>
							<a href="resgin.html">课题研究</a>
						</li>
						<li>
							<a href="ifcon.html">线下学习中心</a>
						</li>
						<li>
							<a href="#">合作单位</a>
						</li> -->
						<li>
							<span id="login" style="position:relative;">登录
                                <div class="login1" style="margin-top:87px; position:absolute; display:none; top:-20px; right:0px; overflow:hidden; z-index:1000;">
                                    <a href="sign_in.html">微信登录</a>
                                    <a href="<{:U('qq')}>">QQ登录</a>
                                </div>
                            </span>
						</li>
					</ul>
				</div>
			</div>
		</div>
    <section class="banner-site">
      <div class="img-bg"> <img src="__PcImages__/home_06.png" class="img-width" style=" width:100%;min-width:1200;"  alt=""/> </div>
      <div class="btn-to" style="display:none;">
        <button class="button">微信登录</button>
        <button class="button">QQ授权登录</button>
      </div>
      <div class="po-text">
        <volist name="class_list" id="vo">
            <div style="float:left;margin-left:15px; position:relative;">
                <a href="javascript:;" class="button banner-button"><{$vo['name']}></a>
                <div class="btn-block">
                  <a href="<{:U('Index/select_course',array('id'=>$vo['id']))}>" class="button button-small">进入</a>
                </div>
            </div>            
        </volist>

        <!-- <div style="float:left; margin-left:15px; position:relative;">
            <a href="javascript:;" class="button banner-button">计算机登记考试</a>
            <div class="btn-block">
              <a href="<{:U('Index/select_course')}>" class="button button-small">进入</a>
            </div>
        </div> -->
      </div>
    </section>
    <!---banner-site-->
    <div class="homeBox">
    <section class="aricle">
          <div class="aricle-content">
            <div id="xueBa">
                <volist name="xuebazi" id="vo">
                    <div class="article-item-text ">
                        <div class="artivle-item-text-img pull-left">
                            <img width="54" height="50" src="__Img__<{$vo['headimg']}>">    
                        </div>
                        <div class="article-item-text-right pull-left">
                          <p><a style="cursor:default;text-decoration:none" href="javascript:;"><{$vo.nickname}></a><{$vo['remark']}></p>
                          <p class="color-gray"><{$vo['add_date']}></p>
                        </div>
                    </div>
                </volist>
            </div>
            <if condition="$totalPagesXue gt 1">
                <div class="article-item-bottom-dian">
                    <a href="javascript:;" id="totalPagesXue" totalPages="<{$totalPagesXue}>" p="2" nextUrl = 'Index/xuebazi'>查看更多动态</a>
                </div>
            </if>
          </div>
    </section>
    <!---article-->
    <section class="aricle">
          <div class="aricle-content">
            <!--<h2 class="aricle-title">学员心声</h2>-->
            <div class="article-text" id="pinglun">
             <volist name="data" id="vo">
              <div class="article-item-text <if condition="$i eq count($data)">bot-none</if>">
                <div class="artivle-item-text-img pull-left">
                <if condition="$vo['userInfo']['headimg'] eq '/Uploads//head_portrait.jpg'">
                <img src="__PcImages__/home_10.png" width="54" height="50">
                <else/>
                <img src="<{$vo.userInfo.headimg}>" width="54" height="50">
                </if>
                </div>
                <div class="article-item-text-right pull-left">
                  <p><a href="javascript:;" style="cursor:default;text-decoration:none"><{$vo.userInfo.nickname}></a>对：<a href="javascript:;" style="cursor:default;text-decoration:none"><span class="color-blue">【<{$vo.subject}>】</span></a>进行了评价：<{$vo.content}></p>
                  <p class="color-gray"><{:time_tran($vo['dateline'])}></p>
                </div>
              </div>
              </volist>
            </div>
            <if condition="$dtotalPages gt 1">
                <div class="article-item-bottom-dian">
                  <a href="javascript:;" id="dnextUrl" dtotalPages="<{$dtotalPages}>" nextUrl='Index/pinglun' p="2">查看更多动态</a>
                </div>
            </if>
          </div>
    </section>
    <!---article-->
    <section class="aricle">
        <div class="aricle-content">
            <!--<h2 class="aricle-title">红包</h2>-->
            <div class="article-text">
                <div class="serch-box">
                    <input type="" class="serch-input" placeholder="按关键词搜索" id="kw" value="<{$_REQUEST['kw']}>">
                    <button class="button-search">筛选</button>
                </div>
                <div class="after_div">   
                    <volist name="list" id="vo" key="k" >
                        <div class="article-item-text">
                            <p style="padding-right:52px;">
                                <span class="text-one">
                                    <img src="__Img__<{$vo.headimg}>" width="12" height="15">
                                    <span class="color-red"><!-- 80 --></span><{$vo.title}>
                                </span>
                                <span class="pull-right span-gray color-gray"> <{$vo.dateline}></span>
                                <span class="pull-right span-gray color-gray hui" num='<{$vo.num}>'><{$vo.num}>回答</span>
                            </p>
                            <p class="color-gray f12">提问者：<{$vo['name']?$vo['name']:$vo['nickname']}></p>
                        </div>
                        <div class="sub-text" style="display: none">
                            <p>回答：<span class="color-gray f12" num="<{$vo.num}>">共<{$vo.num}>条</span></p>
                            <div class="zhui">
                                <volist name="vo['list']" id="va">
                                    <div class="article-item-text resulet-text">
                                        <div class="artivle-item-text-img pull-left">
                                            <img src="__Img__<{$va.headimg}>" width="54" height="50">
                                        </div>
                                        <div class="article-item-text-right pull-left pl10">
                                            <p class="color-gray">
                                                <{$va['name']?$va['name']:$va['nickname']}>
                                                <span class="pull-right span-gray"><{:date('Y-m-d H:i:s',$va['dateline'])}></span> 
                                            </p>
                                            <p><{$va['content']}></p>
                                        </div>
                                    </div>
                                </volist>
                            </div>
                            <div class="summernote"></div>
                            <div class="ovhi">
                                <button class="submitbtn" onclick="tijiao(this,<{$vo['id']}>,<{$k+($p-1)*8}>)">回答问题</button>
                            </div>
                        </div>
                    </volist>
                </div>
                <!-- 第二页才可以查看更多 -->
                <notempty name="nextUrl">
                    <div class="article-item-bottom-dian">
                        <a href="javascript:;" id="nextUrl" nextUrl="<{$nextUrl}>" totalPages="<{$totalPages}>" p="2">查看更多动态</a>
                    </div>
                </notempty>
            </div>
        </div>
    <section>
    <!---article-->
    <!-- <iframe src="<{:U('xueba')}>" width="100%" height="700"> -->
        <section>
            <div class="aricle-content">
                <div class="article-text">
                    <div class="iesetleft">
                        <ul class="name-list">
                            <volist name="class_list" id="vo">
                                <volist name="vo['subject']" id="vo1">
                                    <li><a href="javascript:;" class="xueba"subjectid="<{$vo1['subjectid']}>"><{$vo1.subject}></a></li>
                                </volist>
                            </volist>
                            <li><img src="__PcImages__/home_14.png" width="175" height="343"></li>
                        </ul>
                    </div>
                    <div class="fw iesetright" style="display:none;">
                        <p class="p-bot-line">
                            <span class="fw-title">全部学霸</span>
                            <span class="fw-subtitle">我的积分：<{$my_num}>  我的排名：<{$my_rank_num}></span>
                        </p>
                        <p>榜单</p>
                        <div class="bang-ba">
                            <volist name="xbdata" id="vo">
                                <dl>
                                    <dd>
                                        <if condition="$vo['user']['headimg'] eq '/Uploads//head_portrait.jpg'">
                                            <img src="__PcImages__/home_10.png" width="54" height="50">
                                        <else/>
                                            <img src="<{$vo.user.headimg}>" width="54" height="50">
                                        </if>    
                                    </dd>
                                    <dt><{$vo.user.nickname}></dt>
                                </dl>
                            </volist>
                        </div>
                        <div class="article-item-bottom-dian">
                            <!-- <a href="javascript:;">查看更多</a> -->
                        </div>
                    </div>
                </div>
            </div>
        <section>
    <!-- </iframe> -->
    </div>
<!--footer-->
<script>
    $(function(){
        edinit();
        $('.iesetright').eq(0).fadeIn(800);
        $('.iesetleft .name-list li').click(function(){
           var j=$(this).index();
           $('.iesetright').eq(j).fadeIn(800).siblings('.iesetright').hide();
        })
        $(document).scrollTop(<{$_REQUEST['top']}>);
        //学霸
        $(".xueba").click(function(){
            var top =  $(document).scrollTop();
            var left = $(document).scrollLeft();
            var subjectid = $(this).attr('subjectid');
            window.location.href="<{:U('index')}>?subjectid="+subjectid+'&top='+top;
        })
        //回复
        $(document).on("click",".hui",function(){
            $('.sub-text').hide();
            $(this).parents('.article-item-text').next().show();
        });
        //搜索
        $('.button-search').click(function(event) {
            var val = $(this).prev().val();
            nextUrl = 'Index/index?kw='+val;
            $.get(nextUrl,function(res){
                var html=$(res).find(".after_div").html();  
                $(".after_div").html(html);
                edinit();
            })
        });
        //Xue
        $('#totalPagesXue').click(function(){
            var _this = $(this);
            var totalPages = parseInt(_this.attr('totalPages'));
            var nextUrl = _this.attr('nextUrl');
            var p = parseInt(_this.attr('p'));
            if(p>totalPages){
                _this.html('没有更多了...');
                return false;
            }
            if(nextUrl.indexOf('?') > 0){
                nextUrl = '/Index/xuebazi?xp='+p;
            }else{
                nextUrl = '/Index/xuebazi?xp='+p;
            }
            $.get(nextUrl,function(res){
                if(p==totalPages){
                    _this.html('没有更多了...');
                }
                _this.attr('p',p+1);
                var html='';
                $.each(res.msg,function(k,v){
                    html += '<div class="article-item-text ">';
                    html += '<div class="artivle-item-text-img pull-left">';
                    html += '<img width="54" height="50" src="/Uploads'+v.headimg+'">';    
                    html += '</div>';
                    html += '<div class="article-item-text-right pull-left">';
                    html += '<p><a style="cursor:default;text-decoration:none" href="javascript:;">'+v.nickname+'</a>'+v.remark+'</p>';
                    html += '<p class="color-gray">'+v.add_date+'</p>';
                    html += '</div>';
                    html += '</div>';
                });
                $("#xueBa").append(html);
            },'json')
        });
        //回答更多
        $('#nextUrl').click(function(){
            var _this = $(this);
            var totalPages = parseInt(_this.attr('totalPages'));
            var nextUrl = _this.attr('nextUrl');
            var p = parseInt(_this.attr('p'));
            var kw = $('#kw').val();
            if(p>totalPages){
                _this.html('没有更多了...');
                return false;
            }
            if(nextUrl.indexOf('?') > 0){
                nextUrl = 'Index/index?p='+p+'&kw='+kw;
            }else{
                nextUrl = 'Index/index?p='+p+'&kw='+kw;
            }
            $.get(nextUrl,function(res){
                if(p==totalPages){
                    _this.html('没有更多了...');
                }
                _this.attr('p',p+1);
                var html=$(res).find(".after_div").html();  
                $(".after_div").append(html);
                edinit();
            })
        });
        //评论更多
        $('#dnextUrl').click(function(){
            var _this = $(this);
            var totalPages = parseInt(_this.attr('dtotalPages'));
            var nextUrl = _this.attr('nextUrl');
            var p = parseInt(_this.attr('p'));
            var kw = $('#kw').val();
            if(p>totalPages){
                _this.html('没有更多了...');
                return false;
            }
            if(nextUrl.indexOf('?') > 0){
                nextUrl = '/Index/pinglun?dp='+p;
            }else{
                nextUrl = '/Index/pinglun?dp='+p;
            }
            $.get(nextUrl,function(res){
                if(p==totalPages){
                    _this.html('没有更多了...');
                }
                _this.attr('p',p+1);
                var html='';
                $.each(res.msg,function(k,v){
                    html += '<div class="article-item-text">';
                    html += '<div class="artivle-item-text-img pull-left">';
                    html += '<img src="'+v.headimg+'" width="54" height="50">';
                    html += '</div>';
                    html += '<div class="article-item-text-right pull-left">';
                    html += '<p><a href="javascript:;" style="cursor:default;text-decoration:none">'+v.nickname+'</a>对：<a href="javascript:;" style="cursor:default;text-decoration:none"><span class="color-blue">【'+v.subject+'】</span></a>进行了评价：'+v.content+'</p>';
                    html += '<p class="color-gray">'+v.dateline+'</p>';
                    html += '</div>';
                    html += '</div>';  
                });
                $("#pinglun").append(html);
            },'json')
        })
    })
    function tijiao(obj,id,key){
        var content = $('.summernote').eq(key-1).code();
        if(content==''){
            alert('请填写内容')
            return false;
        }
        $.post("<{:U('huida')}>",{content:content,id:id},function(data){
            if(data.status>0){
                alert('回答成功');
                $(obj).parents('.sub-text').find('.f12').text('共'+(Number($(obj).parents('.sub-text').find('.f12').attr('num'))+1)+'条');
                $(obj).parents('.sub-text').prev().find('.hui').text('共'+(Number($(obj).parents('.sub-text').prev().find('.hui').attr('num'))+1)+'回答');
                var str = '<div class="article-item-text resulet-text">';
                    str +='<div class="artivle-item-text-img pull-left">';
                    str +='<img src="<{$user_info.headimg}>" width="54" height="50">';
                    str +='</div>';
                    str +='<div class="article-item-text-right pull-left pl10">';
                    str +='<p class="color-gray">';
                    str +='<{$user_info["name"]}>';
                    str +='<span class="pull-right span-gray">'+data.date+'</span> ';
                    str +='</p>';
                    str +='<p>'+content+'</p>';
                    str +='</div>';
                    str +='</div>';
                $(obj).parents('.sub-text').find('.zhui').append(str);
            }
        },'json')
    }
    function edinit(){
        $('.summernote').summernote({
            height:300,
            focus:false,
            maxHeight:null,
            minHeight:null, 
            toolbar: [
                ['style', ['bold', 'italic', 'underline', 'clear']],
                ['color', ['color']],
            ]
        });
    }
</script>
<include file="Public:footer" />